/*
 * Copyright 2011-2012 by The Regents of the University of California Licensed
 * under the Apache License, Version 2.0 (the "License"); you may not use this
 * file except in compliance with the License. you may obtain a copy of the
 * License from
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package edu.ucsd.db.bassarisk.storage.test;

import static org.mockito.Matchers.any;
import edu.ucsd.db.bassarisk.data.values.IntType;
import edu.ucsd.db.bassarisk.data.values.LongType;
import edu.ucsd.db.bassarisk.storage.loading.ColumnLoader;
import edu.ucsd.db.bassarisk.storage.loading.ColumnSegmentInfo;
import edu.ucsd.db.bassarisk.storage.loading.DrawerLoader;
import edu.ucsd.db.bassarisk.storage.reading.IDrawerIndexReader.CardInfo;

public class Matchers {
  
  @SuppressWarnings("unchecked")
  public static CardInfo<IntType> anyCardInfo() {
    return any(CardInfo.class);
  }

  @SuppressWarnings("unchecked")
  public static ColumnSegmentInfo<IntType> anyIntColSegInfo() {
    return any(ColumnSegmentInfo.class);
  }

  @SuppressWarnings("unchecked")
  public static ColumnSegmentInfo<LongType> anyLongColSegInfo() {
    return any(ColumnSegmentInfo.class);
  }
  
  @SuppressWarnings("unchecked")
  public static ColumnLoader<IntType> anyIntColumnLoader() {
    return any(ColumnLoader.class);
  }
  
  @SuppressWarnings("unchecked")
  public static DrawerLoader<IntType> anyIntDrawerLoader() {
    return any(DrawerLoader.class);
  }
  
}
